<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>登录</title>
    <script type="text/javascript">
    	// 检测：用户名和密码必须输入（略）
    </script>
  </head>
  <body>
    <form action="UserServlet?action=login" method="post">
    	用户名：<input type="text" name="username">
    	<br>
    	密码：<input type="password" name="pwd">
    	<br>
    	<input type="checkbox" name="auto">自动登录
    	<br>
    	<img id="vcode" src="UserServlet?action=verificationCode">
		<a href="javascript:reload();">换一个</a> <br>
		<br>
    	<input type="submit" value="登录">
    	<p style="color: red">${msg}</p>
    </form>
  </body>
</html>
